package gui;

import java.awt.event.MouseEvent;
import java.awt.event.MouseMotionAdapter;

import javax.swing.JFrame;


public class HexGUI extends JFrame {
	
	public HexGUI() {

		this.setSize(1200, 680);
		this.addWindowListener(new java.awt.event.WindowAdapter() {
	           public void windowClosing(java.awt.event.WindowEvent e) {
	               System.exit(0);
	           }
	       });
		this.setVisible(true);
	} 
	
	public static void main(String [] args) {
		HexGUI gui = new HexGUI();
		
		HexDemoPanel hex = new HexDemoPanel(50, 50);
		gui.add(hex);
		hex.revalidate();
		hex.gameLoop();
	}
}
